package model;

import java.sql.Date;

public class Baomat {

	private String emailbaove;
	private User user;
	private String cmnd;
	private Date ngaycap;
	private String noicap;

	public Baomat() {

	}

	public Baomat(String emailbaove, String cmnd, Date ngaycap, String noicap) {
		this.emailbaove = emailbaove;
		this.cmnd = cmnd;
		this.ngaycap = ngaycap;
		this.noicap = noicap;
	}

	public Baomat(String emailbaove, User user, String cmnd, Date ngaycap,
			String noicap) {
		this.emailbaove = emailbaove;
		this.user = user;
		this.cmnd = cmnd;
		this.ngaycap = ngaycap;
		this.noicap = noicap;
	}

	public String getEmailbaove() {
		return emailbaove;
	}

	public void setEmailbaove(String emailbaove) {
		this.emailbaove = emailbaove;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getCmnd() {
		return cmnd;
	}

	public void setCmnd(String cmnd) {
		this.cmnd = cmnd;
	}

	public Date getNgaycap() {
		return ngaycap;
	}

	public void setNgaycap(Date ngaycap) {
		this.ngaycap = ngaycap;
	}

	public String getNoicap() {
		return noicap;
	}

	public void setNoicap(String noicap) {
		this.noicap = noicap;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "Email bảo vệ: " + emailbaove +"\n"+ "CMND: " + cmnd +"\n"+ "Ngày cấp: " + ngaycap
			+"\n"	+ "Nơi cấp: " + noicap;
	}

}
